package com.earthchen.core.support.shiro.provider.impl;

import com.earthchen.core.support.shiro.provider.ShiroFilterRulesProvider;
import com.earthchen.core.support.shiro.rule.RolePermRule;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 动态过滤规则提供者接口
 */
@Service
@ConditionalOnMissingBean(name = "shiroFilterRulesProvider")
public class ShiroFilterRulesProviderImpl implements ShiroFilterRulesProvider {

//    @Autowired
//    private AuthResourceMapper authResourceMapper;

    @Override
    public List<RolePermRule> loadRolePermRules() {

//        return authResourceMapper.selectRoleRules();
        return null;
    }

}
